<?php 
require('../inc/header.php.inc');
require('../inc/twitter.php.inc');

$twitterObj->setToken($_GET['oauth_token']);
$token = $twitterObj->getAccessToken();
$twitterObj->setToken($token->oauth_token, $token->oauth_token_secret);

setcookie('oauth_token', $token->oauth_token);
setcookie('oauth_token_secret', $token->oauth_token_secret);
$twitterInfo= $twitterObj->get_accountVerify_credentials();
?>

<h3>Congratulations!</h3>
<p>Hi <?php echo $twitterInfo->screen_name; ?>, you've successfully signed into <?php echo $sitename; ?> using your Twitter account. Unfortunately this feature is only a work in progress, and this is as far as we've gotten on it, but at least the fact that you've seen this page proves it works, LOL. We will be implementing the automatic posting of upoads to Twitter in a future update to the software, so keep a look out for this and other great things coming in the future!</p>

<?php require('../inc/footer.php.inc'); ?>